package top.vains.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author vains
 * @since 2020-02-17
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("角色实体类，通过角色来控制权限")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "自增ID", dataType = "Integer", example = "0")
    private Integer id;

    /**
     * name字段表示角色的英文名称
     */
    @ApiModelProperty(value = "name字段表示角色的英文名称", dataType = "String", example = "role")
    private String name;

    /**
     * nameZh字段表示角色的中文名称
     */
    @TableField("nameZh")
    @ApiModelProperty(value = "nameZh字段表示角色的中文名称", dataType = "String", example = "角色")
    private String nameZh;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", dataType = "String", example = "描述")
    private String remark;


}
